package chapter67;

import java.util.Scanner;

public class TestTriangle {

	public static void main(String[] args) {
		String answer = "n";
		Scanner input = new Scanner(System.in);
		Triangle tgl = new Triangle();
		do{
			System.out.println("请输入第一条边：");
			tgl.a = input.nextInt();
			System.out.println("请输入第二条边：");
			tgl.b = input.nextInt();
			System.out.println("请输入第三条边：");
			tgl.c = input.nextInt();
			tgl.isTriangle(tgl.a, tgl.b, tgl.c);
			tgl.shape(tgl.a, tgl.b, tgl.c);
			System.out.println("是否继续（y/n）:");
			answer = input.next();
		}while(answer.equals("y"));
		System.out.println("谢谢使用");

	}

}
